package com.bupt.liutong.admin.core.dto;

import java.util.ArrayList;
import java.util.List;

public class Tree {
	private String id;
	private String rootTitle;
	private String target;
	private TreeRoot treeRoot;
	private TreeCategory treeCategory;
	private TreeNode treeNode;
	private List<TreeSqlMap> sqlMapList;
	
	public void addSqlMap(TreeSqlMap treeSqlMap) {
		if (sqlMapList == null) {
			sqlMapList = new ArrayList<TreeSqlMap>();
		}
		sqlMapList.add(treeSqlMap);
	}

	public List<TreeSqlMap> getSqlMapList() {
		return sqlMapList;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRootTitle() {
		return rootTitle;
	}

	public void setRootTitle(String rootTitle) {
		this.rootTitle = rootTitle;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public TreeRoot getTreeRoot() {
		return treeRoot;
	}

	public void setTreeRoot(TreeRoot treeRoot) {
		this.treeRoot = treeRoot;
	}

	public TreeCategory getTreeCategory() {
		return treeCategory;
	}

	public void setTreeCategory(TreeCategory treeCategory) {
		this.treeCategory = treeCategory;
	}

	public TreeNode getTreeNode() {
		return treeNode;
	}

	public void setTreeNode(TreeNode treeNode) {
		this.treeNode = treeNode;
	}

	public void setSqlMapList(List<TreeSqlMap> sqlMapList) {
		this.sqlMapList = sqlMapList;
	}
}
